package com.six.epidemic.admin.flower

import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import junit.framework.Test
import junit.framework.TestCase
import junit.framework.TestSuite


/**
 * Unit test for simple App.
 */
class AppTest
/**
 * Create the test case
 *
 * @param testName name of the test case
 */
    (testName: String?) : TestCase(testName) {
    /**
     * Rigourous Test :-)
     */
    fun testApp() {
        val mapper = ObjectMapper()
        val factory = mapper.factory
        var jsonString ="{\"k1\":\"v1\",\"k2\":\"v2\"}"
        val parser: JsonParser = factory.createParser(jsonString)
        val actualObj: JsonNode = mapper.readTree(parser)
        println(actualObj.toString())


    }

    companion object {
        /**
         * @return the suite of tests being tested
         */
        fun suite(): Test {
            return TestSuite(AppTest::class.java)
        }
    }
}